{include file="common/header2"}


<div class="findpass-header container-fluid">

    <div class="container findpass-header-con">

        <div class="logo-img">

            <img src="__CDN__/assets/img/index/logo.png">

        </div>

        <div class="header-title">

            <p>智识医学研究院</p>

            <p>www.zhishi.com</p>

        </div>
<!-- 以下修改密码 -->
        <div class="header-desc">

           <p>修改登录密码</p>

        </div>

    </div>

    <div style="clear:both;"></div>

</div>

<div class="container register-pic ">

     <div class="register-inp clearfix">

     <form action="/index/user/editPassword.html" method="POST">
           <div class="register-inp-list register-inp-pass">

                <label>原始密码</label><input type="password" name="pass" id="yuanpass" class="register-pass">

           </div>
           <div class="register-inp-list register-inp-pass">

                <label>设置新密码</label><input type="password" name="repass" id="repass" class="register-pass" >

           </div>

           <div class="register-inp-list register-inp-repass">

               <label>确认新密码</label> <input type="password" name="repass" id="repassword" class="register-repass" >

           </div>          
           <div class="register-inp-list register-inp-btn" style="margin-top: 20px;">
                
                <input type="submit" name="" class="registerbtn" value="确认修改" id="repassbutton">

           </div>
           <p class="wrong "><span id="wrong"></span></p>


      </form>

     </div>

</div>
<script type="text/javascript">
$('#repassbutton').click(function(){
var pass = $('#yuanpass').val();
var repass = $('#repass').val();
var repassword = $('#repassword').val();
// 判断原密码是否正确
$.ajax({
    url:"/index/user/checkPassword",   
    dataType:"json",  
    async:true,
    data:{"pass":pass}, 
    type:"POST",  
    success:function(res){
        if(){

        }else{
         $('#wrong').html('原密码不正确！')；
         return false;
        }
    },
    error:function(){
       
    }
});

if((repass!='') && (repassword!='') && (repass==repassword)){
  alert('修改成功')
}else{
      $('#wrong').html('重置密码不正确！');
      return false; 
}
})
</script>
{include file="common/login"}
{include file="common/footer"}